package org.example.pojo;

import java.net.URL;

public enum FileIcon {
    // 神遗物
    NEI_KAO("nei_kao.png");

    private final String fileName;


    FileIcon(String fileName) {
        this.fileName = fileName;
    }

    //获取文件路径
    public String getFilePath() {
        return FileIcon.class.getResource("/GenshinImpactIcon/" + fileName).getPath();
    }

    public URL getFileURL() {
        return FileIcon.class.getResource("/GenshinImpactIcon/" + fileName);
    }


}
